Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 20 - QuickDraw 3D Mathematical Utilities / QuickDraw 3D Mathematical Utilities Reference
QuickDraw 3D Mathematical Utilities / Managing Bounding Spheres


Q3BoundingSphere_Set

You can use the Q3BoundingSphere_Set function to set the defining origin and radius of a bounding sphere.

TQ3BoundingSphere *Q3BoundingSphere_Set (
TQ3BoundingSphere *bSphere, 
const TQ3Point3D *origin, 
float radius, 
TQ3Boolean isEmpty);
bSphere
A pointer to a bounding sphere.
origin
A pointer to a three-dimensional point.
radius
A floating-point value that specifies the desired radius of the bounding sphere.
isEmpty
A Boolean value that indicates whether the specified bounding sphere is empty (kQ3True) or not (kQ3False).
DESCRIPTION
The Q3BoundingSphere_Set function assigns the values origin and radius to the origin and radius fields of the bounding sphere specified by the bSphere parameter. Q3BoundingSphere_Set also assigns the value of the isEmpty parameter to the isEmpty field of the bounding sphere.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996